﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Payton.WP7.Common.Configration;

namespace Payton.WP7.Common.Model
{
    public class RenRenSNSProvider : SNSProvider
    {

        protected override void Initialize()
        {
            base.Initialize();
            this.ProviderName =  AppResx.RenRenMicroblogText;
            this.Type = SNSProviderType.RenRen;
            
        }

        protected override Interface.IOAuthService GetAuthriozeService()
        {
            throw new NotImplementedException();
        }

        protected override Configration.OAuthSettings GetAuthSettings()
        {
            return ConfigrationManager.Current[SNSProviderType.RenRen];
        }

        internal override SNSAccount NewAccount()
        {
            var account = base.AccountManager.CreateAccount(SNSProviderType.RenRen);
            return account;
        }


        internal override Uri GetIconUrl()
        {
            return new Uri("/Icons/renren.jpg", UriKind.Relative);
        }

        public override bool IsSupported
        {
            get { return true; }
        }
    }
}
